/*  zwt */
package cn.mandy.sysadmin.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MonitorHostStatusExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MonitorHostStatusExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHostNameIsNull() {
            addCriterion("host_name is null");
            return (Criteria) this;
        }

        public Criteria andHostNameIsNotNull() {
            addCriterion("host_name is not null");
            return (Criteria) this;
        }

        public Criteria andHostNameEqualTo(String value) {
            addCriterion("host_name =", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameNotEqualTo(String value) {
            addCriterion("host_name <>", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameGreaterThan(String value) {
            addCriterion("host_name >", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameGreaterThanOrEqualTo(String value) {
            addCriterion("host_name >=", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameLessThan(String value) {
            addCriterion("host_name <", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameLessThanOrEqualTo(String value) {
            addCriterion("host_name <=", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameLike(String value) {
            addCriterion("host_name like", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameNotLike(String value) {
            addCriterion("host_name not like", value, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameIn(List<String> values) {
            addCriterion("host_name in", values, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameNotIn(List<String> values) {
            addCriterion("host_name not in", values, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameBetween(String value1, String value2) {
            addCriterion("host_name between", value1, value2, "hostName");
            return (Criteria) this;
        }

        public Criteria andHostNameNotBetween(String value1, String value2) {
            addCriterion("host_name not between", value1, value2, "hostName");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCpuPercentIsNull() {
            addCriterion("cpu_percent is null");
            return (Criteria) this;
        }

        public Criteria andCpuPercentIsNotNull() {
            addCriterion("cpu_percent is not null");
            return (Criteria) this;
        }

        public Criteria andCpuPercentEqualTo(Short value) {
            addCriterion("cpu_percent =", value, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentNotEqualTo(Short value) {
            addCriterion("cpu_percent <>", value, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentGreaterThan(Short value) {
            addCriterion("cpu_percent >", value, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentGreaterThanOrEqualTo(Short value) {
            addCriterion("cpu_percent >=", value, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentLessThan(Short value) {
            addCriterion("cpu_percent <", value, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentLessThanOrEqualTo(Short value) {
            addCriterion("cpu_percent <=", value, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentIn(List<Short> values) {
            addCriterion("cpu_percent in", values, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentNotIn(List<Short> values) {
            addCriterion("cpu_percent not in", values, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentBetween(Short value1, Short value2) {
            addCriterion("cpu_percent between", value1, value2, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andCpuPercentNotBetween(Short value1, Short value2) {
            addCriterion("cpu_percent not between", value1, value2, "cpuPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentIsNull() {
            addCriterion("mem_percent is null");
            return (Criteria) this;
        }

        public Criteria andMemPercentIsNotNull() {
            addCriterion("mem_percent is not null");
            return (Criteria) this;
        }

        public Criteria andMemPercentEqualTo(Short value) {
            addCriterion("mem_percent =", value, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentNotEqualTo(Short value) {
            addCriterion("mem_percent <>", value, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentGreaterThan(Short value) {
            addCriterion("mem_percent >", value, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentGreaterThanOrEqualTo(Short value) {
            addCriterion("mem_percent >=", value, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentLessThan(Short value) {
            addCriterion("mem_percent <", value, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentLessThanOrEqualTo(Short value) {
            addCriterion("mem_percent <=", value, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentIn(List<Short> values) {
            addCriterion("mem_percent in", values, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentNotIn(List<Short> values) {
            addCriterion("mem_percent not in", values, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentBetween(Short value1, Short value2) {
            addCriterion("mem_percent between", value1, value2, "memPercent");
            return (Criteria) this;
        }

        public Criteria andMemPercentNotBetween(Short value1, Short value2) {
            addCriterion("mem_percent not between", value1, value2, "memPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentIsNull() {
            addCriterion("disk_percent is null");
            return (Criteria) this;
        }

        public Criteria andDiskPercentIsNotNull() {
            addCriterion("disk_percent is not null");
            return (Criteria) this;
        }

        public Criteria andDiskPercentEqualTo(Short value) {
            addCriterion("disk_percent =", value, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentNotEqualTo(Short value) {
            addCriterion("disk_percent <>", value, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentGreaterThan(Short value) {
            addCriterion("disk_percent >", value, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentGreaterThanOrEqualTo(Short value) {
            addCriterion("disk_percent >=", value, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentLessThan(Short value) {
            addCriterion("disk_percent <", value, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentLessThanOrEqualTo(Short value) {
            addCriterion("disk_percent <=", value, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentIn(List<Short> values) {
            addCriterion("disk_percent in", values, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentNotIn(List<Short> values) {
            addCriterion("disk_percent not in", values, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentBetween(Short value1, Short value2) {
            addCriterion("disk_percent between", value1, value2, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andDiskPercentNotBetween(Short value1, Short value2) {
            addCriterion("disk_percent not between", value1, value2, "diskPercent");
            return (Criteria) this;
        }

        public Criteria andCpuStatusIsNull() {
            addCriterion("cpu_status is null");
            return (Criteria) this;
        }

        public Criteria andCpuStatusIsNotNull() {
            addCriterion("cpu_status is not null");
            return (Criteria) this;
        }

        public Criteria andCpuStatusEqualTo(String value) {
            addCriterion("cpu_status =", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusNotEqualTo(String value) {
            addCriterion("cpu_status <>", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusGreaterThan(String value) {
            addCriterion("cpu_status >", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusGreaterThanOrEqualTo(String value) {
            addCriterion("cpu_status >=", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusLessThan(String value) {
            addCriterion("cpu_status <", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusLessThanOrEqualTo(String value) {
            addCriterion("cpu_status <=", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusLike(String value) {
            addCriterion("cpu_status like", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusNotLike(String value) {
            addCriterion("cpu_status not like", value, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusIn(List<String> values) {
            addCriterion("cpu_status in", values, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusNotIn(List<String> values) {
            addCriterion("cpu_status not in", values, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusBetween(String value1, String value2) {
            addCriterion("cpu_status between", value1, value2, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andCpuStatusNotBetween(String value1, String value2) {
            addCriterion("cpu_status not between", value1, value2, "cpuStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusIsNull() {
            addCriterion("mem_status is null");
            return (Criteria) this;
        }

        public Criteria andMemStatusIsNotNull() {
            addCriterion("mem_status is not null");
            return (Criteria) this;
        }

        public Criteria andMemStatusEqualTo(String value) {
            addCriterion("mem_status =", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusNotEqualTo(String value) {
            addCriterion("mem_status <>", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusGreaterThan(String value) {
            addCriterion("mem_status >", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusGreaterThanOrEqualTo(String value) {
            addCriterion("mem_status >=", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusLessThan(String value) {
            addCriterion("mem_status <", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusLessThanOrEqualTo(String value) {
            addCriterion("mem_status <=", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusLike(String value) {
            addCriterion("mem_status like", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusNotLike(String value) {
            addCriterion("mem_status not like", value, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusIn(List<String> values) {
            addCriterion("mem_status in", values, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusNotIn(List<String> values) {
            addCriterion("mem_status not in", values, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusBetween(String value1, String value2) {
            addCriterion("mem_status between", value1, value2, "memStatus");
            return (Criteria) this;
        }

        public Criteria andMemStatusNotBetween(String value1, String value2) {
            addCriterion("mem_status not between", value1, value2, "memStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusIsNull() {
            addCriterion("disk_status is null");
            return (Criteria) this;
        }

        public Criteria andDiskStatusIsNotNull() {
            addCriterion("disk_status is not null");
            return (Criteria) this;
        }

        public Criteria andDiskStatusEqualTo(String value) {
            addCriterion("disk_status =", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusNotEqualTo(String value) {
            addCriterion("disk_status <>", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusGreaterThan(String value) {
            addCriterion("disk_status >", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusGreaterThanOrEqualTo(String value) {
            addCriterion("disk_status >=", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusLessThan(String value) {
            addCriterion("disk_status <", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusLessThanOrEqualTo(String value) {
            addCriterion("disk_status <=", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusLike(String value) {
            addCriterion("disk_status like", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusNotLike(String value) {
            addCriterion("disk_status not like", value, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusIn(List<String> values) {
            addCriterion("disk_status in", values, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusNotIn(List<String> values) {
            addCriterion("disk_status not in", values, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusBetween(String value1, String value2) {
            addCriterion("disk_status between", value1, value2, "diskStatus");
            return (Criteria) this;
        }

        public Criteria andDiskStatusNotBetween(String value1, String value2) {
            addCriterion("disk_status not between", value1, value2, "diskStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}